#include "QtPrivateDeclar.h"

QtPrivateDeclar::QtPrivateDeclar(): d_ptr(new QtPrivateDeclarPrivate(this))
{
    
}

void QtPrivateDeclar::setName(QString name) {
    Q_D(QtPrivateDeclar);
    d->name = name;
}
QString QtPrivateDeclar::getName() {
    Q_D(QtPrivateDeclar);
    return d->name;
}

void QtPrivateDeclar::setAge(int age) {
    Q_D(QtPrivateDeclar);
    d->age = age;
}
int QtPrivateDeclar::getAge() {
    Q_D(QtPrivateDeclar);
    return d->age;
}